///**
// * @author guchenbo
// * @date 2021/11/5
// */
//object JSONUtils {
//  private lazy val _defaultMapper = new ObjectMapper()
//    .registerModule(com.fasterxml.jackson.module.scala.DefaultScalaModule)
//
//  /**
//   * Override this method if you need a custom Jackson object mapper; the default mapper
//   * has the default configuration, plus the Scala module.
//   */
//  protected def createMapper(): ObjectMapper = _defaultMapper
//
//  protected final val mapper = createMapper()
//
//  def fromJson[T](json: String): T = {
//    mapper.readValue(json, new TypeReference[T] {})
//  }
//
//  def getParam(paramMap: Map[String, String], key: String): Option[String] = {
//    val opt = paramMap.get(key)
//    // 处理java中的null
//    if (opt.isEmpty) opt else Option(opt.get)
//  }
//
//}
